package com.woniuxy.stage3demo.service.chenyxuanService;

import com.github.pagehelper.PageInfo;
import com.woniuxy.stage3demo.bean.chenyuxuanBean.EntranceRuleBean;
import com.woniuxy.stage3demo.pageHelper.PageRequest;


public interface EntranceRuleService {
    /**
     * 添加准入规则
     * @param entranceRuleBean
     * @return
     */
    int addEntranceRule(EntranceRuleBean entranceRuleBean);

    /**
     * 删除准入规则
     * @param id
     */
    int deleteEntranceRule(int id);

    /**
     * 修改准入规则
     * @param id
     */
    int updateEntranceRule(EntranceRuleBean entranceRuleBean);

    /**
     * 根据内容模糊查询准入规则
     * @param entranceRuleBean
     * @return
     */
    EntranceRuleBean findEntranceRuleByContext( EntranceRuleBean entranceRuleBean
    );

    /**
     * 分页查询所有准入规则
     * @return
     */
    PageInfo<EntranceRuleBean> findAllEntranceRule(PageRequest pageRequest,EntranceRuleBean entranceRuleBean);
}
